<?php 
$content = $_GET['cont'];
$lang= $_SESSION['lang'];
if ($_GET['lang']) {
    $lang = $_GET['lang'];
}

?>

<div class="leftColumn">

<table class="leftMenu" cellpadding="0" cellspacing="0">
<tbody>

    <?php 
    $i=0; $contId=0;
    foreach ( $items as $key=>$val ) {      
        /* zapisanie id artykulu, jesli podano go w urlu */
        if( $content == $val->id ) {
            $contId = $i;
            $contPath = $val->path;
        }
    ?>    
        <tr id="LEFT_MENU_<?php echo $i; ?>">    
	        <td class="leftMenuItem">
	        <a href="#" onclick="showContent(<?php echo $i; ?>,'<?php echo "content/".($val->path) ?>');"><?php echo $val->title ?></a>
	        </td>
        </tr>
        <tr>
            <td class="line">
                <img src="<?php echo $SKIN.'/menu_line.gif' ?>" alt=""/>
            </td>
        </tr>         
    <?php 
        $i++;
    }
    if (sizeof($content) < 1 ) {
        $contId = 0;
        $contPath = $items[0]->path;
    }
    
    ?>
    </tbody>
</table>
</div>

<?php 
 //   if (strlen($content) > 0) {     
?>
    <script type="text/javascript">
        showContent(<?php echo $contId; ?>,'<?php echo "content/".$contPath ?>');
    </script>
<?php          
   // }       
?> 